package com.aitao.beans;

import com.aitao.enums.LineEnding;

/**
 * 属性实体类
 * 
 * @Company QAX
 * @Author : ai.tao
 * @Create : 2022/2/17 17:16
 */
public class Attribute<K, V> {
    private K key;
    private V value;
    private LineEnding lineEnding;

    public Attribute(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public Attribute(K key, V value, LineEnding lineEnding) {
        this(key, value);
        this.lineEnding = lineEnding;
    }

    public K getKey() {
        return key;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    public LineEnding getLineEnding() {
        return lineEnding;
    }

    public void setLineEnding(LineEnding lineEnding) {
        this.lineEnding = lineEnding;
    }
}
